package org.budo.dubbo.protocol.http.exception.remoting;

import org.budo.dubbo.protocol.http.view.render.budo.ApiError;

import lombok.Getter;
import lombok.Setter;

/**
 * @author limingwei
 */
@Getter
@Setter
public class AuthorizeFailException extends RemotingRuntimeException {
    private static final long serialVersionUID = -2731196078309038682L;

    private ApiError apiError;

    public AuthorizeFailException() {}

    public AuthorizeFailException(ApiError apiError) {
        this.setApiError(apiError);
    }

    @Override
    public String getMessage() {
        return "apiError=" + apiError;
    }
}